//
//  UIButtion+Extension.swift
//  WB01
//
//  Created by HOP on 15/12/21.
//  Copyright © 2015年 HOP. All rights reserved.
//

import UIKit
extension UIButton {

    convenience init(imageName: String, fontSiza: CGFloat, title: String)
    {
        self.init()
        // 设置图片
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
    // 设置文字颜色
    setTitleColor(UIColor.lightGrayColor(), forState: UIControlState.Normal)
        // 设置文字大小
        titleLabel?.font = UIFont.systemFontOfSize(fontSiza)
        // 设置文字的内容
        setTitle(title, forState: UIControlState.Normal)
    }
}
